import Home from '@/views/home/home'
import Groy from '@/views/cateGroy/GroyHome'
import Me from '@/views/me/MeHome'
import Cart from '@/views/shoppingCart/CartHome'

import Search from '@/views/cateGroy/Search'
import Shopcategroy from '@/views/cateGroy/ShopCateGroy'
import Detail from '@/views/cateGroy/detail'

import Login from '@/components/Share/login.vue'
const shop = [
    {
        path:'/login',
        name:Login,
        component:Login
    },
//首页
    {
        path:'/Home',
        name:'Home',
        component:Home,
        meta:{
            title:'首页'
        }
    },
//分类
    {
        path:'/cateGroy',
        name:'Groy',
        component:Groy,
        meta:{
            title:'分类'
        }
    },
    //搜索页面
    {
        path:'/cateGroy/search',
        name:'Search',
        component:Search,
        meta:{
            title:'分类-搜索'
        },
    },
    // 商品详情页
    {
        path:'/cateGroy/scategroy/:id',
        name:'Shopcategroy',
        component:Shopcategroy,
        meta:{
            title:'分类-商品详情'
        },
    },
    //商品详情+购物车页
    {
        path:'/cateGroy/detail/:id',
        name:"Detail",
        component:Detail
    },
//购物车
    {
        path:'/shoppingCart',
        name:'Cart',
        component:Cart,
        meta:{
            title:'购物车'
        }
    },
//个人中心
    {
        path:'/me',
        name:'Me',
        component:Me,
        meta:{
            title:'个人中心'
        }
    },
]
export default shop